with open('pips.txt') as f:
    con = f.readlines()

with open('requirements.txt', 'a+') as f:
    for item in con:
        line = item.strip('\n')
        new_line = line.split()
        print('=='.join(new_line))
        f.write('=='.join(new_line) + '\n')
